import request from '@/utils/request'

// 查询园区仓库服务列表
export function listPark_service(query) {
  return request({
    url: '/system/park_service/list',
    method: 'get',
    params: query
  })
}

// 查询园区仓库服务详细
export function getPark_service(serviceId) {
  return request({
    url: '/system/park_service/' + serviceId,
    method: 'get'
  })
}

// 新增园区仓库服务
export function addPark_service(data) {
  return request({
    url: '/system/park_service',
    method: 'post',
    data: data
  })
}

// 修改园区仓库服务
export function updatePark_service(data) {
  return request({
    url: '/system/park_service',
    method: 'put',
    data: data
  })
}

// 删除园区仓库服务
export function delPark_service(serviceId) {
  return request({
    url: '/system/park_service/' + serviceId,
    method: 'delete'
  })
}

// 上传park_service文件
export function uploadPark_serviceFile(data) {
  return request({
    url: '/common/upload',
    method: 'post',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    data: data
  })
}
